package com.common.retrofit.methods;

import com.common.bean.SessionBean;
import com.common.retrofit.base.BaseMethods;
import com.common.retrofit.service.HaiNingService;

import rx.Observable;
import rx.Subscriber;

public class QueryUidMethods extends BaseMethods {

    private static QueryUidMethods m_ins = null;

    public static QueryUidMethods getInstance() {
        if (m_ins == null) {
            synchronized (QueryUidMethods.class) {
                if (m_ins == null) {
                    m_ins = new QueryUidMethods();
                }
            }
        }
        return m_ins;
    }

    @Override
    protected String getHttpUrl() {
        return "Index/";
    }

    private HaiNingService initService() {
        return getRetrofit().create(HaiNingService.class);
    }


    public void spersonalDetail(Subscriber<SessionBean> subscriber,
                      int uid ,
                      String hashid ,String wy_id ) {
        Observable observable = initService().spersonalDetail(System.currentTimeMillis()+"",
                "a5d520b67c7f9067234fcf0f0c90c32e",uid,hashid ,wy_id
        );
        toSubscribe(observable, subscriber);
    }
}
